package cx3k.scheduler.objects.util;

import cx3k.scheduler.objects.Course;
/*
 * @author charles
 */
public class CopyUtil {

	public static Course deepCopyCourse(Course course) {
		Course temp = new Course();
		temp.setCompletedCourses(course.getCompletedCourses());
		temp.setCourseId(course.getCourseId());
		temp.setCourseNum(course.getCourseNum());
		temp.setCredits(course.getCredits());
		temp.setDegreeProgram(course.getDegreeProgram());
		temp.setDescription(course.getDescription());
		temp.setDifficulty(course.getDifficulty());
		temp.setPrereqCourseId(course.getPrereqCourseId());
		temp.setRequirementGroupings(course.getRequirementGroupings());
		temp.setSections(course.getSections());
		temp.setSemester(course.getSemester());
		
		return temp;
	}
}
